package com.woniu.api.user;

import com.woniu.api.MovieApiFallback;
import com.woniu.common.entity.dto.LoginDto;
import com.woniu.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "user-service",fallback = MovieApiFallback.class)
public interface UserClient {
    @PostMapping("/api/user/login")
    public Result login(@RequestBody LoginDto loginDto);
}
